import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginAndRegister from '../views/LoginAndRegister.vue'
import index from '../views/index'
import contain from '../views/contain'
import page from '../views/page'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'LoginAndRegister',
    component: LoginAndRegister
  },
  {
    path: '/index',
    name: 'index',
    component: index
  },
  {
    path: '/contain',
    name: 'contain',
    component: contain
  },
  {
    path: '/page',
    name: 'page',
    component: page
  }
]

const router = new VueRouter({
  routes
})

export default router
